﻿@model Jb.Web.ViewModels.UtilityModels.ListConfig
@using Jb.Web.Utility;

@{  
    String pageTitle = "List of Job Applications";
    ViewBag.Title = Html.GetPageTitle(pageTitle);
    ViewData[AppConstants.ViewDataKeys.SELECTED_MENU] = EmployerMenu.ManageApplications;
    //ViewData[AppConstants.ViewDataKeys.SHOW_EDIT_LINK] = true;
    ViewData[AppConstants.ViewDataKeys.SHOW_APPLICATION_COUNT] = true;
    ViewData[AppConstants.ViewDataKeys.SHOW_SEND_TO_FRIEND] = false;
    //bool _ShowForEmployer = true;
    Model.Pager.UrlFormat = "/Private/JobApplication/FullList?PageNo={0}";
}

<div class="jb-page-heading">
    <h1>@pageTitle</h1>
    <div>
        Job wise application list.
    </div>
</div>
@*@{String autoClass = Model.Pager != null && Model.Pager.TotalRecord > 0 ? "auto" : String.Empty;}*@
<div class="jb-page-content auto">
    <div id="divMessage"></div>    
</div>

@Html.Partial("_JobList", Model.DataSource)
@if (Model.Pager != null)
{
    String autoClass = Model.Pager.TotalRecord > 0 ? "auto" : String.Empty;
    <div class="jb-page-content @(autoClass)">
    @Html.Partial("_Pager", Model.Pager)
    </div>
}

@section JavaScriptPlaceHolder{
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            
        });     
    </script>
}

